/*
 * @Author: your name
 * @Date: 2021-02-28 16:35:13
 * @LastEditTime: 2021-04-28 12:11:26
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \jianfa-admin\src\api\menu.js
 */
import {get, post } from '../plugin/axioz';

export default {
    getMenu(params) { // 获取三级菜单列表
        return post('/menu/get_menu', params)
    },
    getMenuFiles(params) { // 获取三级菜单文件
        return post('/menu/get_menu_flies', params)
    },
    delMenuFiles(params) { // 删除菜单文件或图片
        return post('/menu/delete_file', params)
    },
    addMenu(params) { // 添加三级菜单
        return post('/menu/add_menu', params)
    },
    delMenu(params) { // 删除三级菜单
        return post('/menu/delete_menu', params)
    },
    addMenuFiles(params) { // 添加子菜单文件
        return post('/menu/add_file', params, 'FormData')
    },
    updateMenu(params) { // 排序子菜单文件
        return post('/menu/update_menu', params)
    },
}